package cn.tedu.boot21.mapper;

import cn.tedu.boot21.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    @Insert("insert into user values(null,#{username},#{password},#{nick})")
    public abstract void insert(User user);

    @Select("select * from user where username=#{username}")
    public abstract User selectByUsername(String name);


}
